/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package muhnes.sizoo.controlador;

import java.io.Serializable;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import muhnes.sizoo.dal.BitacoraDao;
import muhnes.sizoo.dal.BitacoraDaoImpl;
import muhnes.sizoo.modelo.Bitacora;

/**
 *
 * @author Neotaku
 */
@ManagedBean(name = "bitacoraBean")
@ViewScoped
public class BitacoraBean implements Serializable {
    
    private List< Bitacora > listaEventos;
    
    /** Creates a new instance of BitacoraBean */
    public BitacoraBean() {
    }

    public List< Bitacora > getListaEventos() {
        if( listaEventos == null ) {
            BitacoraDao dao = new BitacoraDaoImpl();
            listaEventos = dao.buscarTodos();
        }
        return listaEventos;
    }
    
}


